package com.zero.sample.service;

import java.util.List;

import com.zero.sample.dao.TestDAO;
import com.zero.sample.entity.Test;

public class MyservicesImpl implements Imyservices {
	//spring 注入
	private TestDAO testDAO;
	
	/* (non-Javadoc)
	 * @see com.zero.sample.service.Imyservices#findById(java.lang.Long)
	 */
	public Test findById(Long oid){
		return this.testDAO.findById(oid);
	}
	
	/* (non-Javadoc)
	 * @see com.zero.sample.service.Imyservices#findAll()
	 */
	public List<Test> findAll(){
		return this.testDAO.findAll();
	}
	
	public void setTestDAO(TestDAO testDAO) {
		this.testDAO = testDAO;
	}
	
	public void saveTest(Test t){
		this.testDAO.save(t);
	}
}
